<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">消息类型:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_radios('row[type]', ['0'=>'订阅消息', '1'=>'微信模板消息'],$row.type)}
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">模板编号:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="tempkey" name="row[tempkey]" value="{$row.tempkey|htmlentities}" data-rule="required;tempkey" />
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">模板名:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name|htmlentities}" data-rule="required;name" />
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">kid:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="kid" name="row[kid]" value="{$row.kid|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">模板ID:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="tempid" name="row[tempid]" value="{$row.tempid|htmlentities}" data-rule="required;tempid" />
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">模板名:</label>
        <div class="col-xs-12 col-sm-4">
            <textarea class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="sort" name="row[sort]" value="{$row.sort}"  />
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_radios('row[status]', ['1'=>'正常', '2'=>'禁止'],$row.status)}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>